﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLToolkit.DataAccess;
using BLToolkit.Mapping;
using DAL;

namespace Entities
{

    [TableName("QuanLyKeHoachGiangDay")]
    public class QuanLyKeHoachGiangDay:BaseEntity<QuanLyKeHoachGiangDay>
    {
        [MapField("MaQL"), PrimaryKey]
        public string MaQL { get; set; }
        [MapField("NamHoc")]
        public string NamHoc { get; set; }
        [MapField("HocKi")]
        public string HocKi { get; set; }
        [MapIgnore]
        public string TongSoKeHoach
        {
            get 
            {
                return ChiTietKeHoachGiangDay.Objects.Find(s=>s.MaQL==MaQL).ToList().Count().ToString(); 
            }
        }

         

    }
}
